@layout("/common/_container.html",{js:["/assets/modular/system/staffTicket/staffTicket.js"]}){

<div class="layui-body-header">
    <span style="line-height: 36px;">员工工单管理</span>

    <div style="float:right;">
        @if(shiro.hasPermission("/staffTicket/add")){
        <button id="btnAdd" style="font-size: 14px;" class="layui-btn layui-btn-lg layui-btn-radius layui-btn-primary">
            <img style="width: 16px;height: 16px;margin-bottom: 4px;margin-left: -3px;" src="${ctxPath}/assets/common/images/add.svg"/>&nbsp;新增工单
        </button>
        @}
        <button id="exportAll" style="font-size: 14px;" class="layui-btn layui-btn-lg layui-btn-radius layui-btn-primary">
            <img style="width: 16px;height: 16px;margin-bottom: 4px;margin-left: -3px" src="${ctxPath}/assets/common/images/download.svg"/>&nbsp;导出表单
        </button>
    </div>

</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="orderNo" class="layui-input" type="text" placeholder="报事单号"/>
                            </div>
                            <div class="layui-inline">
                                <input id="contactName" class="layui-input" type="text" placeholder="报事人"/>
                            </div>
                            <div class="layui-inline">
                                <input id="createTime" class="layui-input" type="text" readonly="readonly" placeholder="报事时间"/>
                            </div>
                            <div class="layui-inline">
                                 <input id="describes" class="layui-input" type="text" placeholder="报事内容"/>
                             </div>
                            <div class="layui-inline">
                                <select id="type">
                                    <option value="">状态</option>
                                    <option value="1">待派单</option>
                                    <!--<option value="2">待确认</option>
                                    <option value="5">待支付</option>
                                    <option value="6">已支付</option>
                                    <option value="7">延期处理</option>
                                    <option value="8">待维修</option>-->
                                    <option value="9">维修中</option>
                                    <option value="11">已完成</option>
                                    <option value="12">无法处理</option>
                                    <!--  <option value="13">待领料</option>
                                      <option value="14">待审核</option>
                                      <option value="15">审核未通过</option>-->
                                    <option value="16">已作废</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <select id="repairType">
                                    <option value="">请选择报修类型</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn " style="height: 36px;line-height: 36px"><i class="layui-icon">&#xe615;</i>搜索</button>
                                <button id="reset"  class="layui-btn layui-btn-primary" style="height: 36px;line-height: 36px">
                                    重置
                                </button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="orderTable" lay-filter="orderTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    <div>
        @if(shiro.hasPermission("/staffTicket/ticket_dispatch")){
        {{#  if(d.typeName =="待派单"){}}
        <a class=" v" lay-event="dispatch" >派单 </a><div class="vi"></div>
        {{#  } }}
        @}

        @if(shiro.hasPermission("/ticket/ticket_audit")){
        {{#  if(d.typeName =="待审核"){}}
        <a class=" v" lay-event="audit" >审核 </a><div class="vi"></div>
        {{#  } }}
        @}
        @if(shiro.hasPermission("/staffTicket/ticket_handle")){
        {{#  if(d.typeName =="待派单"||d.typeName =="维修中"){}}
        <a class=" v" lay-event="handle" >处理 </a>
            @if(shiro.hasPermission("/staffTicket/staffTicket_detail")){
               <div class="vi"></div>
            @}
        {{#  } }}
        @}

        @if(shiro.hasPermission("/staffTicket/staffTicket_detail")){
        <a class=" v" lay-event="detail" >详情 </a>
        @}
    </div>

</script>
@}